package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.productionPlan.model.entity.ProductionTheWorkOrder;
import com.wing.productionPlan.model.request.ProductionTheWorkOrderForm;
import com.wing.productionPlan.model.response.*;

import java.util.List;
import java.util.Map;

/**
 * 生产报工单-Service
 *
 * @author
 */
public interface ProductionTheWorkOrderService extends IService<ProductionTheWorkOrder> {

    /**
     * 添加
     *
     * @param productionTheWorkOrderForm
     * @return
     */
    void add(ProductionTheWorkOrderForm productionTheWorkOrderForm);

    /**
     * 列表-app
     *
     * @param params
     * @return
     */
    List<ProductionTheWorkOrderVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     * @return
     */
    Page<ProductionTheWorkOrderVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     * @return
     */
    ProductionTheWorkOrderVO get4appById(Long id);

    /**
     * 报工单列表
     *
     * @param ProductionTheWorkOrderVO
     * @param page
     * @param limit
     * @return
     */
    IPage<ProductionTheWorkOrderVO> getProductionTheWorkOrderVOPageList(ProductionTheWorkOrderVO ProductionTheWorkOrderVO, Integer page, Integer limit);

    /**
     * 查询开工单和工序报工信息
     *
     * @param id
     * @return
     */
    ProductionTheWorkOrderVO selectTheWorkOrderInfo(Long id);

    /**
     * 查询报工单详情
     * @param id
     * @return
     */
    ProductionTheWorkOrderSearchVO getDetailBy(Long id);

    Boolean audit(Long id, String status);

    /**
     * 查询报工和送检总数量
     * @param id
     * @return
     */
    WorkOrderSendTotallVO getTotalBy(Long id);

    /**
     * 获取工艺流程卡信息
     * @param id
     * @return
     */
    ProcessCardInfoVo getCardInfoBy(Long id);

    /**
     * 查询开工单打印信息
     * @param id
     * @return
     */
    ProWorkOrderPrintVo getWorkOrderPrint(Long id);

    /**
     * 获取报工单打印信息
     * @param id
     * @return
     */
    ProductionTheWorkPrintVO getPrintTheWork(Long id);
}
